﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using System.Net;

namespace GoogleMapsApiWebServices.Core
{
    public class MapsApiService
    {
        public string GetResponse(MapsApiRequest request)
        {
            WebRequest webRequest = WebRequest.Create(request.ToUri());
            WebResponse response = webRequest.GetResponse();
            return response.ToString();
        }

        public TResponse GetResponse<TResponse>(MapsApiRequest request)
        {
            WebRequest webRequest = WebRequest.Create(request.ToUri());
            WebResponse response = webRequest.GetResponse();

            return default(TResponse);
        }
    }
}
